package com.itheima.chap04;

import java.io.IOException;

public class ThrowDemo {
    public static void main(String[] args) {
        // 将编译器错误改为运行时错误后，可以不用try catch
        /*try {*/
            PersonalStorage storage = new PersonalStoragempl();
            String content = storage.readFileWithThrows("1.txt");
            System.out.println(content);
        /*} catch (HmException e) {
            e.printStackTrace();
            System.out.println("友好提示：" + e.getMessage());
        }*/
    }
}
